package com.xbj.mapper;

import com.xbj.domain.Role;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends Mapper<Role> {

    void deleteRolePermissionByRoleId(int roleId);

    void saveRolePermission(@Param("list") List<Map<String, Integer>> params);

    List<Role> getRoleListByUserId(int userId);

    void deleteBatchByIds(@Param("ids") String[] idsStr);

}
